package dao;

import util.Time;
import util.db.MySqlConn;

public class OrderPackageItem {
	
	public static int InsertOrderPackageItem(int order_package_id, int order_item_id, int quantity)
	{
		String sql = "insert into order_package_items(order_package_id, order_item_id, quantity," +
				"modified, modify_id, created, create_id) values (" +
				order_package_id + "," + order_item_id + "," + quantity + ",'" + 
				Time.nowTime() + "'," + null + ",'" + Time.nowTime() + "'," + null + ")";
		System.out.println("[" + Time.nowTime() + "]: " + sql);
		MySqlConn  mysqlConn = new MySqlConn();
		int id = mysqlConn.executeGetid(sql);
		mysqlConn.closeConn();
		return id;
	}
}
